package com.electron.power.aio.common.exception;

/**
 * Created by ace on 2017/9/8.
 */
public class BaseException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
	private int status = 200;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public BaseException() {
    	super("发现异常", null, false, false);
    }

    public BaseException(String message,int status) {
    	super(message, null, false, false);
        this.status = status;
    }
    
    public BaseException(String message) {
    	super(message, null, false, false);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
